home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir36
/
zipall12.zip
/
ZIPALL12.DOC
< prev
next >
Wrap
Text File
|
1993-09-15
|
17KB
|
346 lines
ZIPALL
Version 1.2
Freeware by Michael K. Davis
Freespace: the final frontier.
ZIPALL is just a collection of .BAT files I wrote to continue on where PKWARE
left off. They exploit PKZIP and PKUNZIP in a BIG way! Read on:
WHAT DO THESE .BAT FILES DO?
They negate the need for whole-drive compression products
that slow down your system, consume RAM, and enslave your
files to a mysterious, proprietary, virtual nowhere.
They put YOU back in control of your data!
-- SPEED!
Your applications will execute from files that are
fully decompressed before the applications even start.
-- MEMORY!
No additional TSR's or device driver's eating your RAM.
-- CONTROL!
You decide what's compressed, one application
at a time. Restore to "normal" whenever you want.
-- SIMPLICITY!
Three commands to learn: ZIPALL, UNZIPALL & RESTZIP
These commands don't even have switches - no syntax to remember!
One command to compress an entire application.
One command when you're ready to use it.
One command when you're finished using it.
-- ERROR RECOVERY!
Accidentally delete a file, alter a file, "die" in your
favorite action game when you were just about to reach
the highest level! --> NO PROBLEM... We're talking about
the ultimate UNDO here!
HOW DO YOU USE THESE .BAT FILES?
Put the efficient and reliable PKZIP and PKUNZIP to work to compress entire
applications, including children subdirectories, if any, into individual .ZIP
files named ALLFILES.ZIP. You do this to your choice of any applications on
your system by simply executing "ZIPALL" at the parent directory of each.
(No complicated syntax here; it's real simple!)
Later, when you want to use an application, just CD to that same directory
and say "UNZIPALL" to restore the original files and children subdirectories!
Then start your application as usual.
(No complicated syntax here, either!)
When you finish using the application, just CD to it's parent directory and
issue "RESTZIP". It will remove the children subdirectories, if any, and
delete all the files except for ALLFILES.ZIP, after giving you a choice of
whether or not to update ALLFILES.ZIP with files that have been changed or
added while using the application. It even shows you what files have been
changed or added before asking you to decide!
(No complicated syntax here! Let my .BAT files do the thinking!)
Automate the process of decompressing, running and re-compressing an
application by writing simple .BAT files like this:
C: --> goes to the application's drive
CD C:\WP51 --> goes to the application's parent directory
CALL UNZIPALL --> decompression before starting the application
WP --> starts the application
CALL RESTZIP --> re-compression after using the application
WHAT ARE THE ADVANTAGES?
When you try it you're going to fall in love with it. It's non-invasive.
Just run it against a couple of your applications, to get the feel for it.
Pay attention to your freespace before and after! There's no virtual bull.
CHKDSK will be giving you real numbers!
You'll have a REAL hard disk and when you make changes to your
AUTOEXEC.BAT or CONFIG.SYS you'll know you've altered the real thing and not
some virtual image.
When you're in an application, there is no compression product running in
the background -- you're running on the real drive without the RAM consumption
and loss of speed associated with mysterious virtual drive products.
PKZIP is as tight a compression as anyone could hope for. You only have to
suffer a "wait-while-it-works" during the initial compression of an
application. Later, when you go to use an application, you have to wait a
few moments while it decompresses, but remember that once you've started
the application, it's running off of fully decompressed files and you haven't
added another hog TSR to your conventional memory. When you run RESTZIP,
after using an application, it restores in a flash --> only files that have
been changed or added are processed!
RESTZIP is terrific for recovering from accidents, too. Just exit the
application and run RESTZIP selecting "N"o changes, when asked.
Then run UNZIPALL again to decompress the whole application to the way it
looked before you started (and goofed)!
WHAT ARE THE REQUIREMENTS?
These batch files require PKWARE's PKZ204G (not included) or later versions.
Note: PKZ204C will work, but it has lot's of buts that are fixed in PKZ204G!
Also: MS-DOS 5.0, or later, and PATRI-SOFT's PDEL and PATTR, (included).
My batch files are freeware, as are two programs I wrote, WHICHWAY.EXE and
FEED.EXE, but PKWARE and PATRI-SOFT products are Shareware - please register
with their authors. You'll only need as much freespace on your drive as
these files consume, and about half as much space as the the first application
you decide to compress. The freespace will only increase from then on.
HOW DO YOU INSTALL?
1) All the files you unzipped from ZIPALL10.ZIP (my distribution file)
should be located to a directory of your choice that is in the PATH
statement of your AUTOEXEC.BAT. PKWARE's PKZ204G (or later version)
should also be in the PATH statement. (Why not put them both in a
directory called C:\PKWARE?)
2) If you have chosen to locate my files in a directory called C:\PKWARE,
you are in luck because you won't have to do the following edit!:
RESTZIP.BAT and ZIPALL1.BAT must be edited to change all occurrances of
the string "c:\pkware" to the drive and directory you've chosen.
This string occurs in an instruction that reads:
"copy c:\pkware\zipall1.usd" so .... you have to put ZIPALL1.USD in
C:\PKWARE or do the editing to indicate where it is... your choice!
3) Now just boot the machine so that my files and PKWARE's are in the PATH.
4) Installation completed.
HOW DO YOU START CREATING FREESPACE?
CD to the parent directory of any application you want to compress and
bravely execute ZIPALL. [Come on in... the water's nice!] Ok, run your
backup program first, if you want to.
Note the before and after freespace as you go. Don't run ZIPALL on your
DOS directory, other directories that are in your PATH, and certainly not
in the Root directory of the drive you boot from!!!
Use UNZIPALL to decompress an application previously compressed with
ZIPALL and then run the application. When you exit the application,
run RESTZIP to restore ALLFILES.ZIP, deleting the application's files
and removing children subdirectories, if any (recapturing the freespace.)
Explore some of the other .BAT files I've written. Some are documented
below, but all are well documented within.
HOW DO YOU AUTOMATE THE DECOMPRESSION AND RE-COMPRESSION OF APPLICATIONS?
To automate Decompression, Use and Re-compression of applications on your disk:
1) Pick an application you'd like to compress and identify it's "parent"
directory -- the one closest to the drive's root directory.
2) Identify the startup command normally used to start the application.
3) Using the DOS CD command (ie: "CD C:\WP51") position yourself in that
directory.
4) Execute ZIPALL.BAT (ie: "ZIPALL"). This will reduce the current
directory and all of it's children subdirectories, if any, to a
single file, ALLFILES.ZIP. Don't worry, in four years, I've never
seen a bug! Your data is safe! But I make no warranties, and your
use of these batch files is at your own risk.
5) If you don't already have one, create a "command directory" that is
specified in your AUTOEXEC.BAT's PATH statement. This directory will
contain .BAT files which can then be executed from any DOS prompt.
(ie: "MD C:\WORK" and add ";C:\WORK" to the AUTOEXEC.BAT's PATH stmt.)
6) Write a .BAT file for this directory for each application you intend
to compress. It will look something like this:
Don't code these comments in BAT files:
@ECHO OFF
REM THIS IS C:\WORK\WP.BAT
REM
C: Changes to C: drive (where the application is)
CD C:\WP51 Changes to Application's main directory
CALL UNZIPALL * Calls UNZIPALL.BAT to decompress ALLFILES.ZIP
C:\WP51\WP Executes the Application's startup command
CD C:\WP51 Changes to Application's main directory
CALL RESTZIP Calls RESTZIP.BAT to Re-compress ALLFILES.ZIP
ECHO ON Resets ECHO to ON and displays RESTZIP msgs.
* ALLFILES.ZIP, has been previously created by
executing ZIPALL.BAT against this same
directory to compress all of the application's
contents into the single file. Use ZIPALL1
instead of ZIPALL if there are child sub-
directories that you don't want to include.
If you use ZIPALL1.BAT, remember to execute
UNZIPALL against every ALLFILES.ZIP before
attempting to start the application and run
RESTZIP.BAT against every ALLFILES.ZIP after
exiting the application.
7) Now, you can just say "WP" to execute WP.BAT from anywhere on your
system to Decompress the application, start the application, and then
Re-Compress the application when you exit it.
Note: Your must reboot your machine after making changes to your
AUTOEXEC.BAT if you want them to be executed.
[Duh...]
DESCRIPTIONS OF THE MOST FREQUENTLY USED .BAT FILES:
(See comments inside any .BAT for more details.)
Name Function
ZIPALL.BAT Executed at any DOS prompt, it will compress every file within
the current subdirectory AND any child directories beneath it
(including Hidden, System, and Read-only files) into a single
file called ALLFILES.ZIP, deleting all the original files and
removing any child subdirectories. This file must be unzipped
with UNZIPALL.BAT or PKUNZIP.EXE using the "-d -Jhrs" switches.
UNZIPALL.BAT Executed at the DOS prompt of a directory containing the file
ALLFILES.ZIP, it will decompress the ZIP file, recreating the
original files, including any that came from child subdirec-
tories. It does NOT delete ALLFILES.ZIP. The DOS Archive
attributes are turned off every file after decompression.
RESTZIP will check these bits to advise you if any files were
changed or added at the time you are ready to re-compress.
RESTZIP.BAT This is executed at the DOS prompt of a directory containing
ALLFILES.ZIP and the decompressed contents of that ZIP file. It
deletes all the decompressed files and restore ALLFILES.ZIP as
the only file in the subdirectory. If changes were made to the
files since ALLFILES.ZIP was decompressed by UNZIPALL.BAT and
you want to keep these changes, you will see a list of those
changed (or added) files when RESTZIP is executed and you can
reply with a "U" to update ALLFILES.ZIP with the changed versions
when prompted. Replying "N" will make no changes to ALLFILES.ZIP.
RESTZIP.BAT is much faster than re-execution of ZIPALL1.BAT and
if you are using a BACKUP utility that does incremental updates
to a backup diskette pool, RESTZIP.BAT prevents unneccesary
backup of the ZIP file by using the MS-DOS ATTRIB command to
turn off the Archive bit when no changes were made. If changes
WERE made to ALLFILES.ZIP, it's Archive bit will be turned on,
making it elligible to your incremental backup program, if any.
ZIPALL1.BAT Executed at any DOS prompt, it will compress ONLY files within
the CURRENT subdirectory (including hidden and system files) into
a single file called ALLFILES.ZIP, deleting all original files.
Children subdirectories are unaffected. This can be run against
every subdirectory of a single application (the parent and all
it's children), one at a time, if you want to segregrate your
control. Compression density will be the same, but UNZIPALL and
RESTZIP will have to run against each individual subdirectory,
before and after executing the application. If ZIPALL1.BAT is
used, a marker file, named ZIPALL1.USD is left in the directory,
alongside ALLFILES.ZIP, as a guide for RESTZIP's execution.
It will prevent RESTZIP from acting upon child subdirectories
when ZIPALL1 was used to process only the current directory.
ZIPALLT.BAT This functions just like ZIPALL.BAT with the exception that it
DOES NOT delete the original files that were compressed to
create ALLFILES.ZIP. This allows you to create a (T)emporary
ALLFILES.ZIP for the purpose of copying the contents of the
current subdirectory (and its child directories) to another
location in compressed format. The recipient must have these
these .BAT files installed to use UNZIPALL or may simply issue:
"PKUNZIP ALLFILES -d -Jhrs" to reconstruct the original
tree structure and retain file attributes. If the
recipient does not have PKZ204 and/or these .BAT files, use
ZIPEX.BAT instead. (See ZIPEX below.)
ZIPALL1T.BAT This functions just like ZIPALLT.BAT with the exception that i
acts against only the current subdirectory and ignores children
subdirectories.
ZIPEX.BAT This functions just like ZIPALLT.BAT with the exception that it
leaves you with ALLFILES.EXE (a self-extracting version of the
ALLFILES.ZIP that ZIPALLT.BAT would produce). Like ZIPALLT.BAT,
the original files remain intact. Any DOS user can execute
ALLFILES.EXE to decompress the original directories and files.
ALLFILES.EXE must be executed with the "-d -Jhrs" switches:
"ALLFILES -d -Jhrs" to build directories and retain attributes.
WHAT'S NEW IN VERSION 1.2?
Added "attrib -h -s -r *.*" instruction ahead of all occurences of calls to
Patri-Soft's PDEL.EXE. It does not delete files with the Readonly attribute
unless they are in a subdirectory of the current directory! The change makes
it possible for PDEL to cleanup the directory as intended after ALLFILES.ZIP
is created or updated.
WHAT WAS NEW IN VERSION 1.1?
Added check to stop execution of ZIPALL.BAT when PKZIP returns a non-zero
errorlevel after trying to create ALLFILES.ZIP. Handles situations like
insufficient space on the drive to create the ZIP file. Made similar change
to the Update routines within RESTZIP.BAT, when it's trying to update an
existing ALLFILES.ZIP.
Added warning notes to this doc file regarding use of PKZ204C. (Use
PKZ204G or better, instead.)
Enjoy,
Michael K. Davis
I'm not going to tell you
where I live, because no
one would register this if
it were shareware instead
of freeware, anyway!
P.S.: Don't send me any money.
[Duh...]